/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package parih;

import java.util.Random;

/**
 *
 * @author Drak_kin
 */
public class Parih {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        final int parihmaher_counter=3;
        final int human_counter=50;
        final int sofa_size=5;
        final int wait_place_size=10;
        final int pay_place_size=2;
        Sofa sofa = new Sofa(sofa_size);
        Chair chair= new Chair(parihmaher_counter);
        Wait_place w_p= new Wait_place(wait_place_size);
        Pay_place kassa= new Pay_place(pay_place_size);
        Person human[]=new Person[human_counter];
        Random Random_int=new Random();
        for(int i=0;i<human_counter;++i)
            human[i]=new Person(i+1,8*60+Random_int.nextInt(960));
        System.out.println("Начало нового дня");
        System.out.println("Время 8:00");
        for (int time=8*60;time<20*60;time++){
            for(int i=0;i<human_counter;++i){
                human[i].change_status(chair,sofa,w_p,kassa,time);
            }
        }
    }
}
